package com.creative.accountsdk;

import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;

/**
 * Created by yinjialiang on 15-6-24.
 */
public class DialogUtils {
    public static Dialog createProgress(Context context)
    {
        ProgressDialog progressDialog = new ProgressDialog(context);
        progressDialog.setMessage(context.getResources().getString(R.string.please_wait));
        return progressDialog;
    }
    public static Dialog createProgress(Context context, String message)
    {
        ProgressDialog progressDialog = new ProgressDialog(context);
        progressDialog.setMessage(message);
        return progressDialog;
    }
}
